<script setup>
// import { RouterView } from 'vue-router'
</script>

<template>
  <el-config-provider size="small">
    <el-container class="h-full">
      <el-header>
        <el-menu
          default-active="/"
          mode="horizontal"
          router
        >
          <el-menu-item index="/">Fabric 图片标注</el-menu-item>
          <el-menu-item index="/wrapper">图片预加载 vite 插件</el-menu-item>
          <el-menu-item index="/about">Solar System</el-menu-item>
        </el-menu>
      </el-header>
      <el-main class="p-0">
        <RouterView v-slot="{ Component }">
          <KeepAlive>
            <component :is="Component" />
          </KeepAlive>
        </RouterView>
      </el-main>
    </el-container>
  </el-config-provider>
</template>
